package com.rybbaby.tss.front.tssClasses.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.front.tssClasses.dao.ViewTssClassAttendanceExportDao;
import com.rybbaby.tss.front.tssClasses.entity.ViewClassesAttendanceManagementExport;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ViewTssClassAttendanceExportDaoImp extends GenericDao<ViewClassesAttendanceManagementExport> implements ViewTssClassAttendanceExportDao {


    @Override
    public List<ViewClassesAttendanceManagementExport> getAllList(Integer type) {
        String hql = "from ViewClassesAttendanceManagementExport a where a.type ="+type+"";
        return this.findByHql(hql);
    }

    @Override
    public List<ViewClassesAttendanceManagementExport> findListByIds(List<String> ids) {
        return this.loadByMultipleId(ViewClassesAttendanceManagementExport.class, ids);
    }
}
